$import("com.joypard.workflow.definition.DefinitionField");

K.defDI("com.joypard.workflow.definition.DefinitionDI", {
	statics : {
		urls : {
			getDefinitions : $path + "/workflow/definition/getDefinitions.do",
			upload : $path + "/workflow/deployment/upload.do",
			delDefinition : $path + "/workflow/deployment/delDefinition.do",
			startProcess : $path + "/workflow/definition/startProcess.do"
		},
		createDefinitionStore : function() {
			var options = {
				url : this.urls.getDefinitions,
				fields : DefinitionField.fields,
				root : "data",
				paramNames : { // 设置传递的分页参数名
					start : 'start',
					limit : 'size'
				},
				totalProperty : "total"
			};
			return new K.Ext.data.JsonStore(options);
		}
	}
});
